package com.region.http.client.resolver.parameter;

import com.region.common.utils.RandomUtils;
import com.region.http.client.config.ClientConfig;

import java.io.File;

/**
 * @author liujieyu
 * @date 2023/8/12 22:57
 * @description
 */
public abstract class AbstractParameterResolver implements ParameterResolver {

    private ClientConfig config;

    public void setConfig(ClientConfig config) {
        this.config = config;
    }

    /**
     * Generate the cache file path
     */
    protected String getCacheTmpFilePath() {
        return config.getCachePath() + File.separator + RandomUtils.getId();
    }

}
